package com.yesido.moshi.seven.inversion.threetypes.bysetter;

/**
 * @author yesido
 * @description 依赖倒转的三种传递方式-接口传递
 * @date 2023-06-11 23:58
 * @Version 8.3
 */
public class DependencyPass {
    public static void main(String[] args) {
        ChangHong changHong = new ChangHong();
        OpenAndClose openAndClose = new OpenAndClose();
        openAndClose.setTv(changHong);
        openAndClose.open();
    }

}
